import { View, Text, Button } from '@tarojs/components'
import './SearchBar.scss'

interface SearchBarProps {
  placeholder?: string
  onSearch?: () => void
}

export default function SearchBar({ placeholder = '手持悼念花束', onSearch }: SearchBarProps) {
  return (
    <View className='searchbar'>
      <View className='searchbar__input'>
        <Text className='searchbar__icon'>🔍</Text>
        <Text className='searchbar__placeholder'>{placeholder}</Text>
      </View>
      <Button className='searchbar__btn' onClick={onSearch}>搜索</Button>
    </View>
  )
} 